"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function default_1(app) {
    const { socket } = app.locals;
    socket.on('subscribe', function (data, cb) {
        socket.join(data.roomId);
        socket.broadcast.to(data.roomId).emit('subscribe', data);
        cb({ data: 'ok' });
    });
}
exports.default = default_1;
